<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Programação Orcametária</title>
        <link	type	= "text/css"
                 rel		= "stylesheet"
                 href	= "${facesContext.externalContext.request.contextPath}/css/orcamento.css"/>
    </h:head>
    <h:body>

        <p:layout fullPage="true">
            <p:layoutUnit position="north" size="170" header="Programação Orcamentária" style="text-align: center">
                <h:graphicImage  value="/imagens/brasao.png" style="width: 150px; height: 108px;" />
            </p:layoutUnit>
            <p:layoutUnit position="center" >
                <p:messages autoUpdate	= "true"
                            globalOnly	= "true"/>
                <h:form>
                    <p:panelGrid id="frLogin" style="margin: 0 auto ">
                        <p:row>
                            <p:column><p:outputLabel  for="txMatricula" value="Matrícula"/></p:column>
                            <p:column><p:inputText id="txMatricula" value="#{loginBean.formulario.matricula}"/></p:column>
                            <p:column><p:message   for="txMatricula" /></p:column>
                        </p:row>
                        <p:row>
                            <p:column><p:outputLabel for="txSenha" value="Senha" /></p:column>
                            <p:column><p:password id="txSenha" value="#{loginBean.formulario.senha}"/></p:column>
                            <p:column><p:message for="txSenha" /></p:column>
                        </p:row>
                        <p:row>
                            <p:column colspan="3" style="text-align: center;">
                                <p:commandButton value="Entrar" update="frLogin" action="#{loginBean.autentica()}"/>
                            </p:column>
                        </p:row>
                    </p:panelGrid>

                </h:form>
            </p:layoutUnit>
            <p:layoutUnit position="south" size ="35" header ="&copy; 2014 Todos os direitos reservados &nbsp;&bull;&nbsp; Prefeitura de Goiânia" style="text-align: center"></p:layoutUnit>
        </p:layout>

    </h:body>
</html>